import common from "../common";
import constants from "../constants";

const sysTaskJobApi = {
    findSysTaskJobs: (data, success, error) => {
        return common.requestData(constants.API_FindSysTaskJobs, data, success, error);
    },
    saveSysTaskJob: (data, success, error) => {
        return common.requestData(constants.API_SaveSysTaskJob, data, success, error);
    },
    getSysTaskJobBySid: (data, success, error) => {
        return common.requestData(constants.API_GetSysTaskJobBySid, data, success, error);
    },
    batchDelSysTaskJob: (data, success, error) => {
        return common.requestData(constants.API_BatchDeleteSysTaskJob, data, success, error);
    },
    stopQuartz: (data, success, error) => {
        return common.requestData(constants.API_StopQuartz, data, success, error);
    },
};

export default sysTaskJobApi;
